package com.thinkinghead.mahjongrecorder;


import android.app.Application;

import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseUser;
 
public class ParseApplication extends Application {
 
    @Override
    public void onCreate() {
        super.onCreate();
        
        String client_key = getResources().getString(R.string.parse_client_key);
		String app_id = getResources().getString(R.string.parse_app_id);
		Parse.initialize(this, app_id, client_key);

		// Setup Parse Current User
		ParseUser.enableAutomaticUser();
		ParseACL defaultACL = new ParseACL();
		defaultACL.setPublicReadAccess(true);
		ParseACL.setDefaultACL(defaultACL, true);       
    }
 
}